//
//  CMDBShowInfoManager.swift
//  CMDB
//
//  Created by 王磊 on 17/4/5.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

class CMDBShowInfoManager: NSObject {
    static let getInstance: CMDBShowInfoManager = CMDBShowInfoManager()
    
    private override init() {
        super.init()
        
        configSVProgressSUD()
    }
}
extension CMDBShowInfoManager: CMDBShowInfoManagerDelegate {
    
    internal func configSVProgressSUD() {
        
        SVProgressHUD.setDefaultStyle(.Dark)
        
        SVProgressHUD.setMinimumDismissTimeInterval(2.0)
    }
    
    // 成功的时候提示信息
    internal func showSuccessStatus(msg : String){
        
        SVProgressHUD.showSuccessWithStatus(msg)
        
    }
    
    internal func showWithStatus(msg: String) {
        
        SVProgressHUD.showWithStatus(msg)
    }
    internal func showInfoWithStatus(msg: String) {
        
        SVProgressHUD.showInfoWithStatus(msg)
    }
    
    // 去
    internal func popActivity() {
        
        SVProgressHUD.popActivity()
    }
}